package main

import (
	"log"
	"net"
	"net/http"
	"net/rpc"
	ro "rpc_objects"
	"time"
)

func main() {
	calc := new(ro.Args)
	rpc.Register(calc)
	rpc.HandleHTTP()
	listener, err := net.Listen("tcp", "localhost:1234")
	if err != nil {
		log.Fatal("Starting RPC-Sever -listen error:", err)
	}
	go http.Serve(listener, nil)
	time.Sleep(1000e9)

}
